package com.whz.parameterized;

/**
 * @Author: sinosoft
 * @Description:
 * @Date: Create in 17:44 2021/5/11
 * @Modified By:
 */
public class Sub extends Sup implements Comparable<Sup>{
    public Sub(int order) {
        super(order);
    }

    @Override
    public int compareTo(Sup other) {
        return this.getOrder() - other.getOrder();
    }
}
